package com.qf.listener.direct;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@Component
public class DirectListener01 {

    @RabbitListener(queues = "direct_queue1")
    public void consum(String message){
        System.out.println("消费了 队列1 --------" + message);
    }
}
